﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:my="clr-namespace:Brjnk.GpxExplorer.Workspace"
                    xmlns:maps="clr-namespace:Brjnk.Maps;assembly=Maps">

    <x:ArrayExtension x:Key="WebbrowserMaps" Type="{x:Type my:WebbrowserMap}">
        <my:WebbrowserMap  Name="Mapy.cz" IconUri="/Resources/Icons/mapycz.png">
            <my:WebbrowserMap.Address>
                <![CDATA[http://mapy.cz/#!x={0}&y={1}&z=15]]>
            </my:WebbrowserMap.Address>
        </my:WebbrowserMap>

        <my:WebbrowserMap  Name="Google Maps" IconUri="/Resources/Icons/googlemaps.png">
            <my:WebbrowserMap.Address>
                <![CDATA[https://maps.google.com/maps?z=14&t=m&q=loc:{1:f6}+{0:f6}]]>
            </my:WebbrowserMap.Address>
        </my:WebbrowserMap>

        <my:WebbrowserMap  Name="Geocaching.com" IconUri="/Resources/Icons/gcmap.png">
            <my:WebbrowserMap.Address>
                <![CDATA[http://www.geocaching.com/map/#?ll={1:f6},{0:f6}&z=14]]>
            </my:WebbrowserMap.Address>
        </my:WebbrowserMap>
    </x:ArrayExtension>

    <x:ArrayExtension x:Key="MapSources" Type="{x:Type maps:CustomWebMapSource}">
        <maps:CustomWebMapSource SourceNameSerializable="OSM Standart map"
                                 UniqueNameSerializable="OSM Standart map"
                                 TileDIPSizeSerializable="256,256"
                                 MaxZoom="18"
                                 Type="MercatorOSM">
            <maps:CustomWebMapSource.UrlPattern>
                <![CDATA[http://a.tile.openstreetmap.org/{z}/{x}/{y}.png]]>
            </maps:CustomWebMapSource.UrlPattern>
        </maps:CustomWebMapSource>
    </x:ArrayExtension>
</ResourceDictionary>